package com.ktjy.dao;

import com.ktjy.entity.Pet;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/2  8:55
 */
@Repository("petDao")
public class PetDaoImpl implements PetDao {
    @Value("小猫")
    String name;
    @Override
    public int insert(Pet pet) {
        System.out.println("将宠物“"+name+"”插入到数据库");
        return 1;
    }
}
